import request from '@/utils/request'

/**地址1下拉列表*/
export function address1List() {
  return request({
    url: '/distribution/admin/system/city/queryList?level=1',
  })
}

/**查看购买订单*/
export function orderList(params) {
  return request({
    url: '/distribution/order/list',
    params
  })
}


/**标记黑名单*/
export function mark(data) {
  return request({
    url: '/distribution/orderClient/mark',
    method: 'POST',
    data
  })
}


/**查询卖家客户列表*/
export function orderClientList(params) {
  return request({
    url: '/distribution/orderClient/list',
    params
  })
}

/**新增卖家客户*/
export function addOrderClient(data) {
  return request({
    url: '/distribution/orderClient',
    method: 'POST',
    data
  })
}

/**查询卖家列表*/
export function getSellerUserList(params) {
  return request({
    url: '/distribution/user/getSellerUserList',
    params
  })
}

/**修改卖家 积分自动抵扣开关*/
export function updatePointAutoPay(data) {
  return request({
    url: '/distribution/user/updatePointAutoPay',
    method: 'POST',
    data
  })
}
/**新增卖家*/
export function insertSellerUser(data) {
  return request({
    url: '/distribution/user/insertSellerUser',
    method: 'POST',
    data
  })
}


/**修改卖家信息*/
export function updateSellerUser(data) {
  return request({
    url: '/distribution/user/updateSellerUser',
    method: 'POST',
    data
  })
}


/**查询卖家信息*/
export function selectSellerInfo(id) {
  return request({
    url: `/distribution/user/selectSellerInfo?id=${id}`,
  })
}

/**查询卖家用户列表*/
export function getSellerUserListByDistrId(id) {
  return request({
    url: `/distribution/user/getSellerUserListByDistrId?id=${id}`,
  })
}


/**描述：新增卖家用户*/
export function insertSellerUserByDistrId(data) {
  return request({
    url: `/distribution/user/insertSellerUserByDistrId`,
    method: 'POST',
    data
  })
}

/**修改卖家用户*/
export function updateSellerUserByDistrId(data) {
  return request({
    url: `/distribution/user/updateSellerUserByDistrId`,
    method: 'POST',
    data
  })
}

/**修改租户密码*/
export function updatePassword(data) {
  return request({
    url: `/distribution/user/updatePassword`,
    method: 'POST',
    data
  })
}


/**描述：修改卖家利润倍率*/
export function updateProfitRate(data) {
  return request({
    url: `/distribution/user/updateProfitRate`,
    method: 'POST',
    data
  })
}

/**强制回收云库存sku列表*/
export function forceRecoveryList(params) {
  return request({
    url: '/distribution/skuSeller/forceRecoveryList',
    params
  })
}

/**全部回收、勾选回收卖家SKU信息*/
export function forceRecoveryInfo(data) {
  return request({
    url: '/distribution/skuSeller/forceRecoveryInfo',
    method: 'POST',
    data
  })
}


/**全部回收、勾选回收卖家SKU处理 */
export function forceRecoveryHandle(data) {
  return request({
    url: '/distribution/skuSeller/forceRecoveryHandle',
    method: 'POST',
    data
  })
}




